package com.clt.ess.service.impl;

import com.clt.ess.dao.UnitImgDataMapper;
import com.clt.ess.entity.UnitImgData;
import com.clt.ess.service.UnitImgDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UnitImgDataServiceImpl implements UnitImgDataService {

    @Autowired
    private UnitImgDataMapper unitImgDataMapper;

    @Override
    public List<UnitImgData> findUnitImgDataList() {
        return unitImgDataMapper.findUnitImgDataList();
    }

    @Override
    public UnitImgData findUnitImgDataByUnitId(String unitId) {
        return unitImgDataMapper.findUnitImgDataByUnitId(unitId);
    }

    @Override
    public Integer addUnitImgData(UnitImgData data) {
        return unitImgDataMapper.addUnitImgData(data);
    }
}
